// Kony


#include "Input/BaseInputConfig.h"

const UInputAction* UBaseInputConfig::FindAbilityInputActionForTag(const FGameplayTag& InputTag,
	bool bLogNotFound) const
{
	//根据用户当前按下的按键数组 查询出对应的能力标签
	for (const FBaseInputAction& Action : AbilityInputActions)
	{
		if (Action.InputAction && Action.InputTag == InputTag)
		{
			return Action.InputAction;
		}
	}
	if (bLogNotFound)
	{
		UE_LOG(LogInput, Error, TEXT("UBaseInputConfig::FindAbilityInputActionForTag: Could not find input action for tag [%s] , on InputConfig [%s]"), *InputTag.ToString(),*GetNameSafe(this));
	}
	return nullptr;
}
